import parse
import data

if __name__ == "__main__":
    fp = data.FileParse()
    parse.parse(fp)

    deck = data.Deck
    parse.createDeck(deck, fp)
    
    out = '\n'.join(deck.output)
    with open("deck.txt", "w") as outfile:
      outfile.writelines(out)
